Class GirvanNewman
java.lang.Object
edu.claflin.finder.algo.Algorithm
edu.claflin.finder.algo.clustering.ClusteringAlgorithm
edu.claflin.finder.algo.clustering.GirvanNewman
- All Implemented Interfaces:
Processable<Graph,Graph>
Girvan-Newman Algorithm for Community Detection. Based on python's igraph
library and JUNG's graph library.
- Author:
- Cesar Martin
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.claflin.finder.algo.Algorithm
Algorithm.GraphSortOrder -
Field Summary
Fields inherited from class edu.claflin.finder.algo.Algorithm
args, PROP_PROGRESS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponents(List<Node> nList) Extracts the weak components from a graph.Performs Edge Betweenness community detection with Girvan-Newman algorithm a given Graph, returning the clustering with the maximum modularity.toString()Methods inherited from class edu.claflin.finder.algo.clustering.ClusteringAlgorithm
buildCommunityGraphs, isWeightedMethods inherited from class edu.claflin.finder.algo.Algorithm
addPropertyChangeListener, cull, getGraphSortOrder, getMinNodeCount, getPartiteNumber, getWeightName, removePropertyChangeListener, setGraphSortOrder, setMinNodeCount, setPartiteNumber, setProgress, setWeightName, zeropad
-
Constructor Details
-
GirvanNewman
-
-
Method Details
-
toString
-
process
Performs Edge Betweenness community detection with Girvan-Newman algorithm a given Graph, returning the clustering with the maximum modularity.- Parameters:
graph- the Graph to perform FastGreedy on- Returns:
- the list of Graphs representing the clustering with the maximum modularity
-
getComponents
Extracts the weak components from a graph.- Parameters:
nList- the list of Nodes of the Graph- Returns:
- the list of weak components
-